import { ref } from "vue";

function useState(initialVal) {
    const refVal = ref(initialVal);
    return [
        refVal,
        newVal => {
            refVal.value = newVal
        }
    ]
}

export default useState
